#!/bin/bash
# Zaitan Module - Nagios Install
# Zaitan Team <http://code.google.com/p/zaitan/>
# Script Tirado desse link http://www.vivaolinux.com.br/artigos/verArtigo.php?codigo=6788&pagina=1


RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Servers'
RMOD_NAME='Nagios'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='2.9'
RMOD_DESCRIPTION='Installs Nagios'



# Install Nagios

echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall

cd /usr/share/zaitan

apt-get update

wget -c http://ufpr.dl.sourceforge.net/sourceforge/zenoss/zenoss-2.0.6-0.el4.i386.rpm
wget -c hhttp://ufpr.dl.sourceforge.net/sourceforge/zenoss/Zenoss-Plugins-2.0.4-1.py24.noarch.rpm
wget -c http://ufpr.dl.sourceforge.net/sourceforge/zenoss/ZenossQuickStartV2.pdf.zip
wget -c http://downloads.sourceforge.net/zenoss/ZenossAdminGuide2-0.pdf.zip





echo $RMOD_NAME Finibashed...

##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##

exit 0
